package com.polaris.live.utils.interfaces

/**
 * 跳转回调
 *
 * @author Created by lucas on 2023/12/14 09:51
 * @since 1.0.0
 */
interface OnGotoListener {

    /**
     * 跳转数据
     */
    fun onGoto(gotoData: GotoData)

    class GotoData(
        /**
         * 跳转的索引
         */
        val index: Int,
        /**
         * 子跳转数据
         */
        var child: GotoData? = null
    )
}
